<?php
 use mdm\admin\components\MenuHelper;
/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

$BASE_URL = Yii::$app->request->hostInfo . Yii::$app->homeUrl . "?r=";

 $menus = MenuHelper::getAssignedMenu(Yii::$app->user->getId());
 foreach ($menus as $menu) {
     $menuArr[] = $menu['label'];
    
}
//var_dump($menuArr);
//exit();

echo "
<script type='text/javascript'>
var func_array={};
func_array['m01']=['科研项目','mytable'];
func_array['f1']=['项目信息','" . $BASE_URL . "project/index'];

func_array['m10']=['OA办公','workflow'];
func_array['f130']=['OA消息','" . $BASE_URL . "msg/index'];

func_array['m20']=['成果管理','erp'];
func_array['f24']=['论文','" . $BASE_URL . "lunwen/index'];
func_array['f196']=['专利','" . $BASE_URL . "patent/index'];
func_array['f105']=['获奖','" . $BASE_URL . "prize/index'];
func_array['f119']=['著作','" . $BASE_URL . "writings/index'];

func_array['m30']=['教学管理','knowledge'];
func_array['f15']=['课程管理','" . $BASE_URL . "course/index'];
func_array['m40']=['资料管理','portal'];
func_array['f59']=['资料信息','" . $BASE_URL . "material/index'];
func_array['m45']=['组织机构','management_center'];
func_array['f74']=['教职工信息','" . $BASE_URL . "gky-profile/index'];
func_array['f2']=['部门信息','" . $BASE_URL . "dept/index'];

func_array['m50']=['微信管理','hr'];
func_array['f27']=['公众号管理','@hr','@hr','rsgl,rzgl'];

func_array['f481']=['参数配置','" . $BASE_URL . "gky-we-account/index'];
func_array['f482']=['自定义菜单','" . $BASE_URL . "gky-we-account/index'];
func_array['f483']=['欢迎语','" . $BASE_URL . "gky-we-welcome/index'];
func_array['f484']=['文本回复','" . $BASE_URL . "gky-we-reply-text/index'];
func_array['f485']=['图文回复','" . $BASE_URL . "gky-we-reply-news/index'];
func_array['f486']=['关注人员','" . $BASE_URL . "gky-we-fans/index'];
func_array['f487']=['查看二维码','" . $BASE_URL . "/gky-we-account/show-qrcode'];
func_array['f488']=['文章列表','" . $BASE_URL . "gky-we-article/index'];
func_array['f489']=['栏目管理','" . $BASE_URL . "gky-we-article-type/index'];
func_array['f490']=['群发消息','" . $BASE_URL . "gky-group-msg/index'];
func_array['f26']=['企业号管理','@attendance/manage','@attendance','kqgl'];
func_array['f506']=['参数配置','" . $BASE_URL . "gky-qyh/index'];
func_array['f507']=['查看二维码','" . $BASE_URL . "gky-qyh/show'];
func_array['f508']=['部门管理','" . $BASE_URL . "gky-qyh-department/index&isUpdata=true'];
func_array['f509']=['成员管理','" . $BASE_URL . "gky-qyh-user/index&isUpdata=true'];

func_array['m70']=['权限管理','roll_manage'];
func_array['f202']=['权限信息','" . $BASE_URL . "admin'];
func_array['f200']=['用户管理','" . $BASE_URL . "user/admin/index'];

</script>
";
